package com.ace.user.util;

import com.ace.user.common.constant.C;
import org.apache.commons.lang3.RandomStringUtils;
import org.slf4j.MDC;

import java.util.Random;

/**
 * @author weihl
 * @date 2019/10/17 14:34
 */
public class LogUtil {
    public static void traceLogId() {
        MDC.put(C.TRACE_LOG_ID, RandomStringUtils.randomNumeric(12));
        MDC.put(C.METHOD_START_TIME,System.currentTimeMillis() + "");
    }
}
